﻿using OA.IBLL;
using System;
using System.Collections.Generic;
using System.Configuration.Internal;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;

namespace OA.Mvc.Controllers
{
   
    public class HomeController : Controller
    {
        public ISysPersonService PersonService { get; set; }
        public ActionResult Index()
        {
           

            //ViewBag.Name= this.User.Identity.Name;
            //var ticke = User.Identity as FormsIdentity;
            //ViewBag.Data = ticke.Ticket.UserData;
            return View();
        }

        public ActionResult Console()
        {
            return View();
        }

        [OutputCache(Duration =10)]
        [AllowAnonymous]
        public ActionResult About()
        {
            ViewBag.Time = DateTime.Now;
            return View();
        }

       
    }
}